from google.appengine.ext import db

class Vehicle(db.Model):
  name = db.StringProperty(required=True)
  make = db.StringProperty(required=True)
  model = db.StringProperty(required=True)
  year = db.DateProperty(required=True)
  color = db.StringProperty(required=True)
  vin = db.StringProperty()
  license_plate = db.StringProperty(required=True)
  license_plate_state = db.StringProperty(required=True, choices=set(["CA", "OR", "WA"]))
  owner = db.UserProperty(required=True)